import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path:"/",
    redirect:"mypage"
  },
  {
    name:"mypage",
    path:"/mypage",
    component:()=> import('@/views/my-page.vue')
  },
  {
    name:"mymenu",
    path:"/mymenu",
    component:()=> import('@/views/my-menu.vue')
  },
  {
    name:"mycart",
    path:"/mycart",
    component:()=> import('@/views/my-cart.vue')
  },
  {
    name:"mymine",
    path:"/mymine",
    component:()=> import('@/views/my-mine.vue')
  },
  {
    name:"myFooter",
    path:"/myfooter",
    component:()=> import('@/components/my-footer.vue')
  },
  {
    name:"myLogin",
    path:"/mylogin",
    component:()=> import('@/my-login.vue')
  },
  {
    name:"geren",
    path:"/geren",
    component:()=> import('@/pages/gerenziliao.vue')
  },
  {
    name:"dingdan",
    path:"/dingdan",
    component:()=> import('@/pages/wodedingdan.vue')
  },
  {
    name:"shoucang",
    path:"/shoucang",
    component:()=> import('@/pages/wodeshoucang.vue')
  },
  {
    name:"dizhi",
    path:"/dizhi",
    component:()=> import('@/pages/dizhiguanli.vue')
  },
  {
    name:"guanli",
    path:"/guanli",
    component:()=> import('@/pages/zhanghaoguanli.vue')
  },
  {
    name:"xiangqing",
    path:"/xiangqing",
    component:()=> import('@/components/shangpingxiangqing.vue')
  },
  {
    name:"dingdanjiesuan",
    path:"/dingdanjiesuan",
    component:()=> import('@/pages/dingdanjiesuan.vue')
  },
  {
    name:"search",
    path:"/search",
    component:()=> import('@/pages/search.vue')
  }
  
]

const router = new VueRouter({
  routes
})

export default router
 
